                <div id="main">
                    <div id="c1" class="main_containers" style="width: 270px;">
                        <div id="m500" class="module" style="display: block;">
                            <div class="moduleFrame">
                                <div class="moduleHeader">
                                    <span class="moduleIcon"><img src="<?php echo JS_PATH;?>/phuongmaiadv/g/icon.gif" alt="icon"/></span>
                                    <div class="moduleTitle"></div>
                                </div>
                                <div class="moduleContent">
<?php
$currentPage = $this->leftMenuID;

if ($currentPage > 0) {
    // get all category has assigned from indexAction.
    $allCategory = $this->allCategory;

    // get current node
    $leftMenu = $allCategory[$currentPage];
    if (isset($leftMenu['children']) && count($leftMenu['children']) > 0) {
        echo "<ul class='navul'>";
        foreach($leftMenu['children'] as $item):
?>
        <li class="navli"><a href="<?php echo BASE_PATH . '/' . CURR_APP ?>?pid=<?php echo $allCategory[$item]['category_id'];?>"><?php echo $allCategory[$item]['admin_title'];?></a></li>
<?php
    endforeach;
        echo "</ul>";
    } // count left children
?>

<?php } // if currentPage?>

                                </div>
                            </div>
                        </div>
                    </div>
                </div>
